<template>
  <view class="page">
    <up-tabs line-color="#EE6B54" :list="list1" :active-style="{ fontWeight: 'bold', color: '#333' }"></up-tabs>
    <scroll-view-list
      ref="tableRef"
      :api="modelFindModelPage"
      :init-params="flowParams.initParams"
      :isCount="false"
      url="/pages/templateDetail/index"
      :params="flowParams.params"
    />
  </view>
</template>
<script setup lang="ts">
import scrollViewList from "@/components/ScrollViewList/index.vue";
import { modelFindModelPage } from "$api/template";
const { proxy } = getCurrentInstance();
const list1 = reactive([{ name: "所有模版" }]);

let flowParams = reactive({
  params: {
    _type: "created",
    id: null
  },
  initParams: {
    status: 1
  }
});

onShow(() => {
  console.log("查询数据>>>>>>>>>>>>>>>>..");

  nextTick(() => {
    proxy.$refs.tableRef.getTableList();
  });
});
</script>
<style src="./index.scss" scoped></style>
